package cn.tutu.blockchain.minemachine.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cn.tutu.blockchain.base.BaseDao;
import cn.tutu.blockchain.minemachine.entity.Minemachine;

@Mapper
public interface MinemachineDao extends BaseDao<Minemachine> {

	public List<Minemachine> findByUser(String userId);

	public Minemachine findByMachineId(String mineMachineId);

	public int deleteByMacIdAndUserId(@Param("userId") String userId, @Param("mineMachineId") String mineMachineId);

	public void updateDateTime();

	public List<Minemachine> findByLastUpdateDate();

	public void updateStatusBatch(List<Minemachine> list);

}
